package com.tinycloud.miracll.product.service.impl;

import java.util.List;

import com.tinycloud.common.datasource.annotation.Slave4;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.product.mapper.DevicestatsMapper;
import com.tinycloud.miracll.product.domain.Devicestats;
import com.tinycloud.miracll.product.service.IDevicestatsService;

/**
 * scada产线状态Service业务层处理
 * 
 * @author tiny
 * @date 2021-12-11
 */
@Service
@Slave4
public class DevicestatsServiceImpl implements IDevicestatsService 
{
    @Autowired
    private DevicestatsMapper devicestatsMapper;

    /**
     * 查询scada产线状态
     * 
     * @param id scada产线状态主键
     * @return scada产线状态
     */
    @Override
    public Devicestats selectDevicestatsById(Long id)
    {
        return devicestatsMapper.selectDevicestatsById(id);
    }

    /**
     * 查询scada产线状态列表
     * 
     * @param devicestats scada产线状态
     * @return scada产线状态
     */
    @Override
    public List<Devicestats> selectDevicestatsListTimeRange(Devicestats devicestats)
    {
        return devicestatsMapper.selectDevicestatsListTimeRange(devicestats);
    }
  /**
     * 查询scada产线状态列表
     *
     * @param devicestats scada产线状态
     * @return scada产线状态
     */
    @Override
    public List<Devicestats> selectDevicestatsList(Devicestats devicestats)
    {
        return devicestatsMapper.selectDevicestatsList(devicestats);
    }

    /**
     * 新增scada产线状态
     * 
     * @param devicestats scada产线状态
     * @return 结果
     */
    @Override
    public int insertDevicestats(Devicestats devicestats)
    {
        return devicestatsMapper.insertDevicestats(devicestats);
    }

    /**
     * 修改scada产线状态
     * 
     * @param devicestats scada产线状态
     * @return 结果
     */
    @Override
    public int updateDevicestats(Devicestats devicestats)
    {
        return devicestatsMapper.updateDevicestats(devicestats);
    }

    /**
     * 批量删除scada产线状态
     * 
     * @param ids 需要删除的scada产线状态主键
     * @return 结果
     */
    @Override
    public int deleteDevicestatsByIds(Long[] ids)
    {
        return devicestatsMapper.deleteDevicestatsByIds(ids);
    }

    /**
     * 删除scada产线状态信息
     * 
     * @param id scada产线状态主键
     * @return 结果
     */
    @Override
    public int deleteDevicestatsById(Long id)
    {
        return devicestatsMapper.deleteDevicestatsById(id);
    }
}
